package com.itheima.day01.ZuoYe.ZuoYe3_5;

public class Teacher extends People {
    private String teach;
    public void teachmethod(){
        System.out.println("我在授课~");
    }

    public Teacher() {
    }

    public Teacher(String name, int age, String teach) {
        super(name, age);
        this.teach = teach;
    }

    public Teacher(String teach) {
        this.teach = teach;
    }

    public String getTeach() {
        return teach;
    }

    public void setTeach(String teach) {
        this.teach = teach;
    }


}
